pub struct Player {
    pub name: String,
    // 座位ID，从0开始
    pub seat: usize,
}

impl Player {
    pub fn new(n: &str, seat: usize) -> Self {
        let name = n.to_string();
        Self {
            name,
            seat,
        }
    }

    // 玩家坐在0号位置，其他3家都是机器人
    pub fn is_robot(&self) -> bool {
        self.seat != 0
    }
}
